package com.lmx.persistence.service;

import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.transaction.annotation.Transactional;

import com.lmx.client.BaseTest;
import com.lmx.repoDomain.tmodel.CustomerDrugReport;
import com.lmx.thirdPart.ThirdPartBusiException;
import com.lmx.thirdPart.daerma.DaermaBusinessProcessor;

/**
 *
 *
 * @author ytche
 * @date 2017年7月27日
 *
 */
public class CustomerDrugReportService extends
		BaseTest<CustomerDrugReport> {
	/*@Autowired
	DrugService service;

	@Test
	@Transactional
	public void testSave() {
		CustomerDrugReport record = new CustomerDrugReport();
		service.saveDrugReport(record);
	}*/
	
	 @Autowired
	    private DaermaBusinessProcessor businessProcessor;


	    @Test
	    public final void testGetDeviceStatus() {
	        try {
	            businessProcessor.getSleepData();
	        } catch (ThirdPartBusiException e) {
	            // TODO Auto-generated catch block
	            e.printStackTrace();
	        }
	    }   
}
